local System = class("SystemBase")

function System:ctor(world)
	self._world = world
	self._elist = {}
	self._emap  = {}
end 

function System:addEntity(einc)
	if (!einc:getCompment(cls)) then 
		return 
	end
	table.insert(self._elist, einc)
	self._emap[einc.id] = einc
end

function System:removeEntity(euid)
	table.remove(self._elist, einc)
	self._emap[einc.id] = nil
end


return System